package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zhengsuyang
 * @Desc:
 * @create: 2025-11-01 16:29
 **/
@FeignClient(value = "user-service",path = "/users")
public interface UserClient {
    /**
     * 扣减用户余额
     * @param pw
     * @param amount
     */
    @PutMapping("/money/deduct")
    public void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
